<?php

class PluginYii_HookProcessOutput
extends Hook
{
	
	public function RegisterHook() {
		$this->AddHook('yii_yiiviewer_processoutput', 'ProcessOutput');
	}
	
	
	public function ProcessOutput($aVars){
		if(!$this->PluginYii_Yii_IsLoaded()
		|| !($this->PluginYii_Yii_App() instanceof CWebApplication)){
			return;
		}
		$this->PluginYii_Yii_App()->getController()->hookProcessOutput($aVars);
	}

}
?>